
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.Role;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Role entities.
 * 
 */
public interface RoleDAO extends JpaDao<Role> {

	/**
	 * JPQL Query - findRoleByPrimaryKey
	 *
	 */
	public Role findRoleByPrimaryKey(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findRoleByPrimaryKey
	 *
	 */
	public Role findRoleByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findRoleByNameContaining
	 *
	 */
	public Set<Role> findRoleByNameContaining(String name) throws DataAccessException;

	/**
	 * JPQL Query - findRoleByNameContaining
	 *
	 */
	public Set<Role> findRoleByNameContaining(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findRoleByMemoContaining
	 *
	 */
	public Set<Role> findRoleByMemoContaining(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findRoleByMemoContaining
	 *
	 */
	public Set<Role> findRoleByMemoContaining(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findRoleById
	 *
	 */
	public Role findRoleById(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findRoleById
	 *
	 */
	public Role findRoleById(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findRoleByName
	 *
	 */
	public Set<Role> findRoleByName(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findRoleByName
	 *
	 */
	public Set<Role> findRoleByName(String name_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllRoles
	 *
	 */
	public Set<Role> findAllRoles() throws DataAccessException;

	/**
	 * JPQL Query - findAllRoles
	 *
	 */
	public Set<Role> findAllRoles(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findRoleByMemo
	 *
	 */
	public Set<Role> findRoleByMemo(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findRoleByMemo
	 *
	 */
	public Set<Role> findRoleByMemo(String memo_1, int startResult, int maxRows) throws DataAccessException;

}